window.phoenix&&(window.phoenix.buildInfo||(window.phoenix.buildInfo=[]),-1===window.phoenix.buildInfo.findIndex((e=>"Phoenix-experience"===e.MFE))&&window.phoenix.buildInfo.push({MFE:"Phoenix-experience",VERSION:"rc-phoenix-experience-1.1.26105.1370789671-5a319f99-4-gb151444",LASTCOMMITDATETIME:"2024-07-12T10:57:26+00:00"})) /*! * * ============= BUILD INFO ============= * MFE: Phoenix-experience * chunkName: vendor-clientlibs/body-scroll-lock/body-scroll-lock * VERSION: rc-phoenix-experience-1.1.26105.1370789671-5a319f99-4-gb151444 * BRANCH: HEAD * COMMITHASH: b15144446b0aeb869603529fd56baec1576b10c9 * LASTCOMMITDATETIME: 2024-07-12T10:57:26+00:00 * ============= If you're reading this, why not come work with us? https://www.t-mobile.com/careers ============= */,function(){"use strict";var e={d:function(o,t){for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{clearAllBodyScrollLocks:function(){return p},disableBodyScroll:function(){return m},enableBodyScroll:function(){return w}});var t=!1;if("undefined"!=typeof window){var n={get passive(){t=!0}};window.addEventListener("testPassive",null,n),window.removeEventListener("testPassive",null,n)}var i="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),r=[],d=!1,l=-1,u=void 0,c=void 0,a=void 0,s=function(e){return r.some((function(o){return!(!o.options.allowTouchMove||!o.options.allowTouchMove(e))}))},f=function(e){var o=e||window.event;return!!s(o.target)||(o.touches.length>1||(o.preventDefault&&o.preventDefault(),!1))},v=function(){void 0!==a&&(document.body.style.paddingRight=a,a=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)},y=function(){if(void 0!==c){var e=-parseInt(document.body.style.top,10),o=-parseInt(document.body.style.left,10);document.body.style.position=c.position,document.body.style.top=c.top,document.body.style.left=c.left,window.scrollTo(o,e),c=void 0}},m=function(e,o){if(e){if(!r.some((function(o){return o.targetElement===e}))){var n={targetElement:e,options:o||{}};r=[].concat(function(e){if(Array.isArray(e)){for(var o=0,t=Array(e.length);o=n&&(document.body.style.top=-(o+e))}))}),300)}})):function(e){if(void 0===a){var o=!!e&&!0===e.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;if(o&&t>0){var n=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);a=document.body.style.paddingRight,document.body.style.paddingRight=n+t+"px"}}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")}(o),i&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(o){1===o.targetTouches.length&&function(e,o){var t=e.targetTouches[0].clientY-l;!s(e.target)&&(o&&0===o.scrollTop&&t>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(o)&&t<0?f(e):e.stopPropagation())}(o,e)},d||(document.addEventListener("touchmove",f,t?{passive:!1}:void 0),d=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},p=function(){i&&(r.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),d&&(document.removeEventListener("touchmove",f,t?{passive:!1}:void 0),d=!1),l=-1),i?y():v(),r=[]},w=function(e){e?(r=r.filter((function(o){return o.targetElement!==e})),i&&(e.ontouchstart=null,e.ontouchmove=null,d&&0===r.length&&(document.removeEventListener("touchmove",f,t?{passive:!1}:void 0),d=!1)),i?y():v()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")};window.bodyScrollLock=o}();